package com.hx.voice.recognition.common.exception;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @descripe：
 * @company：南京华讯方舟通讯设备有限公司
 * @author：zhoujinbing
 * @time：2019/6/11 11:17
 * @version：V1.0
 */
@Data
@NoArgsConstructor
public class BaseException extends RuntimeException {

    private int status = 200;

    public BaseException(String message, int status)
    {
        super(message);
        this.status = status;
    }

    public BaseException(String message){
        super(message);
    }

    public BaseException(String message, Throwable cause)
    {
        super(message,cause);
    }

    public BaseException(Throwable cause)
    {
        super(cause);
    }

    public BaseException(String msg, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
    {
        super(msg,cause,enableSuppression,writableStackTrace);
    }
}
